<!DOCTYPE html>
<html lang="en" ng-app="habridge">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>HA Bridge</title>
    <link rel="shortcut icon" href="img/favicon.ico?v=2">
    <link href="css/main.css" rel="stylesheet">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet">
	<link href="css/ngToast.min.css" rel="stylesheet">
	<link href="css/rzslider.min.css" rel="stylesheet">
	<link href="css/ngDialog.min.css" rel="stylesheet">
	<link href="css/ngDialog-theme-default.min.css" rel="stylesheet">
	<link href="css/scrollable-table.css" rel="stylesheet">
	<link href="css/strength-meter.min.css" rel="stylesheet">
	<link href="css/colorpicker.min.css" rel="stylesheet">

	<style id="compiled-css" type="text/css">
		.goToTop
		{
			position: fixed;
			width: 100px;
			height: 40px;
			bottom: 0;
			right: 0;
			z-index: 100000;
			cursor: pointer;
			margin: 10px;
			-moz-opacity: 0.60;
			opacity: .60;
			filter: alpha(opacity=60);
		}
	</style>
	
	<!--[if lt IE 9]>
    <script type="text/javascript" src="js/html5shiv.min.js"></script>
    <script type="text/javascript" src="js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
	<toast></toast>

	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container" ng-controller="VersionController">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="#">HA Bridge</a>
			</div>
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li class="active"><a href="#">Home</a></li>
					<li><a href="http://{{bridge.settings.myechourl}}" target="_blank">My Echo</a></li>
					<li class="dropdown">
						<a id="dLabel1" href="" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Help <span class="caret"></span></a>
						<ul class="dropdown-menu" aria-labelledby="dLabel">
							<li><a href="https://github.com/bwssytems/ha-bridge/blob/master/README.md" target="_blank">Readme</a></li>
							<li><a href="https://github.com/bwssytems/ha-bridge/wiki/HA-Bridge-FAQs" target="_blank">FAQ</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a id="dLabel2" href="" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">About <span class="caret"></span></a>
						<ul class="dropdown-menu" aria-labelledby="dLabel">
							<li><a href="http://www.bwssystems.com" target="_blank">Developed by BWS Systems</a></li>
							<li><a href="http://www.amazon.com/echo" target="_blank">Amazon Echo</a></li>
							<li><a href="">HA Bridge Version {{bridge.habridgeversion.version}}</a></li>
							<li><center>
								<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
								<input type="hidden" name="cmd" value="_s-xclick">
								<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBpwBoNVLyAVL+oME3onHbjHih2Dytp44O19yFhcdCEvFrQuocbCof59ROBmGZ8brRPKWO3DfmjAKeT3aLNGtA5Q93qOHSxudAq3P9+vFXIwh/b2gcwkk3QSKrgP5gtAZVDFk9zbSphz4DC7bjbuw07LDgueTvR9yJs+4GwIANmCDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIST8/PhLzoeeAgaDFrLyqqhzxD92bz/hSR3EwXkMHy3WUYYukZs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SW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTcwMTIyMjI0MTM5WjAjBgkqhkiG9w0BCQQxFgQUS5OJj8biC631cKpwpD1C1GhZ8TIwDQYJKoZIhvcNAQEBBQAEgYAUzuZG6orxXOecloemF0q/4TKDHypg7XDgZigo1dsRNBWSgkQmZas+f1c0RikEx4Yx8INrwONyh3awPt81JVp0lP+VSXOxMAGFhk8YvseDJmB5v4er1kjLZIp7/aH85fRZ8JnfPviXrbp4znFk2m04ulTiipubTJQYFWPXANc58A==-----END PKCS7-----
								">
								<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
								<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
								</form>
								</center>
							</li>
						</ul>
					</li>
					<li><a href="#!/login">Login/Logout</a></li>
				</ul>
			</div>
		</div>
	</nav>

	<div ng-view prerender-action="authorized()">
	
	
	</div>
	<span class="goToTop"> 
		<button type="button" class="btn btn-light"><i class="glyphicon glyphicon-chevron-up"></i> Back to Top</button>
	</span>
	<!-- <input type="button"  class="goToTop" value="Back to Top"  style="display:none;background-color:blue"  /> -->

	<script src="js/jquery-1.11.3.min.js"></script>
    <script src="js/angular.min.js"></script>
    <script src="js/angular-route.min.js"></script>
	<script src="js/angular-sanitize.min.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/ngToast.min.js"></script>
	<script src="js/rzslider.min.js"></script>
    <script src="js/ngDialog.min.js"></script>
    <script src="js/angular-scrollable-table.min.js"></script>
    <script src="js/strength-meter.min.js"></script>
    <script src="js/angular-base64.min.js"></script>
    <script src="js/angular-resource.min.js"></script>
    <script src="js/ngStorage.min.js"></script>
	<script src="js/bootstrap-colorpicker-module.min.js"></script>
	<script src="js/ng-file-upload-shim.min.js"></script>
	<script src="js/ng-file-upload.min.js"></script>
    <script src="scripts/app.js"></script>
	<script type="text/javascript">
		$(window).load(function(){
		  
		  $(window).scroll(function () {
				if ($(this).scrollTop() > 100) {
					$('.goToTop').fadeIn();
				} else {
					$('.goToTop').fadeOut();
				}
			});
			$('.goToTop').click(function () {
				$("html, body").animate({ scrollTop: 0 }, 1000);
				return false;
			});
		
		});
		
		</script>
	<script>
		// tell the embed parent frame the height of the content
		if (window.parent && window.parent.parent){
		  window.parent.parent.postMessage(["resultsFrame", {
			height: document.body.getBoundingClientRect().height,
			slug: "fvdrw83s"
		  }], "*")
		}
	
		// always overwrite window.name, in case users try to set it manually
		window.name = "result"
	  </script>
	</body>
</html>